﻿#include "mainwindow.h"

#include <QApplication>
#include "MyTcpServer.h"


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();


    MyTcpServer tcpServer;
    tcpServer.listen(QHostAddress::Any, quint16(8888));
    QObject::connect(&tcpServer,&MyTcpServer::stateChange,&w,&MainWindow::changeState);

    return a.exec();
}
